package org.pearl.springbootsecurity.demo.dao;

import org.pearl.springbootsecurity.demo.MP.data.DataScope;
import org.pearl.springbootsecurity.demo.entity.Role;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author td
 * @since 2021-07-02
 */
public interface RoleMapper extends BaseMapper<Role> {

    @DataScope
    List<Role> getRoleListByUserId(Long userId);

}
